#define MYNAME "an1"
#include "defs.h"
-FILE *infile;
-FILE *outfile;
+static FILE *infile;
+static FILE *outfile;
static char *output_type = NULL;
static char *road_changes = NULL;
static char *nogc = NULL;
-short output_type_num = 0;
+static short output_type_num = 0;
-short last_read_type = 0;
+static short last_read_type = 0;
static long serial=10000;
static long rtserial=1;
*/
static FILE *fin, *fout;
-char *filename;
-int curr_rte_num, target_rte_num;
+static char *filename;
+static int curr_rte_num, target_rte_num;
static double radius;
/* placeholders for options */
static FILE *file_in;
static FILE *file_out;
static const char *out_fname;
-struct pdb *opdb;
-struct pdb_record *opdb_rec;
+static struct pdb *opdb;
+static struct pdb_record *opdb_rec;
static void *mkshort_wr_handle;
static char *dbname = NULL;
#include "uuid.h"
-FILE *fd;
-FILE *ofd;
+static FILE *fd;
+static FILE *ofd;
#define MYNAME "coastexp"
#define MY_CBUF 4096
static FILE *file_in;
static FILE *file_out;
static const char *out_fname;
-struct pdb *opdb;
-struct pdb_record *opdb_rec;
+static struct pdb *opdb;
+static struct pdb_record *opdb_rec;
static void
rd_init(const char *fname)
static FILE *file_out;
static const char *out_fname;
static const char *in_fname; /* We might need that for naming tracks */
-struct pdb *opdb;
+static struct pdb *opdb;
static char *trackname = NULL;
static char *zerocat = NULL;
#define CST_REFERENCE 4
#define CST_VERSION 5
-static FILE *fin, *fout;
-char *fin_name, *fout_name;
+static FILE *fin;
+static char *fin_name;
-route_head *temp_route;
+static route_head *temp_route;
/* placeholders for options */
#define EXCEL_TO_TIMET(a) ((a - 25569.0) * 86400.0)
#define TIMET_TO_EXCEL(a) ((a / 86400.0) + 25569.0)
+
+/****************************************************************************/
+/* obligatory global struct */
+/****************************************************************************/
+xcsv_file_t xcsv_file = {};
+
extern char *xcsv_urlbase;
extern char *prefer_shortnames;
/****************************************************************************/
/* obligatory global struct */
/****************************************************************************/
-xcsv_file_t xcsv_file;
+extern xcsv_file_t xcsv_file;
static FILE *file_in;
static FILE *file_out;
static const char *out_fname;
-struct pdb *opdb;
-struct pdb_record *opdb_rec;
+static struct pdb *opdb;
+static struct pdb_record *opdb_rec;
static char *tbuf = NULL;
static char *tbufp = NULL;
/* %%% local vars %%% */
-FILE *fin, *fout;
+static FILE *fin, *fout;
static char *fin_name, *fout_name;
static int gdb_ver = 1;
static waypoint *wpt_tmp;
-FILE *fd;
-FILE *ofd;
+static FILE *fd;
+static FILE *ofd;
static
arglist_t geo_args[] = {
#include "defs.h"
-global_options global_opts;
+global_options global_opts = {};
const char gpsbabel_version[] = VERSION;
static route_head *track_head;
static void *desc_handle;
-FILE *fd;
+static FILE *fd;
static int serial = 0;
static FILE *file_in;
static FILE *file_out;
static const char *out_fname;
-struct pdb *opdb;
-struct pdb_record *opdb_rec;
+static struct pdb *opdb;
+static struct pdb_record *opdb_rec;
static char *dbname = NULL;
static FILE *file_in;
static FILE *file_out;
static const char *out_fname;
-struct pdb *opdb;
-struct pdb_record *opdb_rec;
+static struct pdb *opdb;
+static struct pdb_record *opdb_rec;
static char *dbname = NULL;
static
static char *gpx_email = NULL;
static char *gpx_author = NULL;
-vmem_t current_tag;
+static vmem_t current_tag;
static waypoint *wpt_tmp;
static int cache_descr_is_html;
static int in_Object = 0;
static waypoint *wpt_tmp;
-char *routeName = "ROUTENAME";
+static char *routeName = "ROUTENAME";
#define REPLACEMENT_SIRIUS_ATTR_SEPARATOR ';'
#define ATTR_USRMRK "usrmrk"
static void readVersion4( FILE* pFile);
-FILE *fd;
-FILE *ofd;
+static FILE *fd;
+static FILE *ofd;
static
arglist_t hsa_ndv_args[] = {
#define MYNAME "IGNRando"
-FILE *fin, *fout;
+static FILE *fin, *fout;
static route_head *track;
static waypoint *wpt;
static waypoint *wpt_tmp;
-FILE *fd;
-FILE *ofd;
+static FILE *fd;
+static FILE *ofd;
typedef struct {
double latitude;
static const char *out_fname;
static void *mkshort_handle;
-struct pdb *opdb;
-struct pdb_record *opdb_rec;
+static struct pdb *opdb;
+static struct pdb_record *opdb_rec;
static void
rd_init(const char *fname)
#include "defs.h"
#include "magellan.h"
-int bitrate = 4800;
-int wptcmtcnt;
-int wptcmtcnt_max;
+static int bitrate = 4800;
+static int wptcmtcnt;
+static int wptcmtcnt_max;
#define MYNAME "MAGPROTO"
#define MAXCMTCT 200
#undef OLE_DEBUG
-FILE *fin;
-char *fin_name;
+static FILE *fin;
+static char *fin_name;
static arglist_t msroute_args[] =
{
static waypoint *wpt_tmp;
-FILE *fd;
-FILE *ofd;
+static FILE *fd;
+static FILE *ofd;
static char *noretired = NULL;
#define NMN5_MAGIC 0x766d6170 /* vmap */
#define NMN5_ROUTE 0x49444154 /* IDAT */
-FILE *fd_in;
+static FILE *fd_in;
static struct pdb *pdb_in;
static char *fname_in;
{0, 0, 0, 0, 0}
};
-gpsdata_type ozi_objective;
+static gpsdata_type ozi_objective;
static char *ozi_ofname = NULL;
#define PPDB_MAGIC_WPT 0x506f4c69 /* PoLi */
#define PPDB_MAGIC 0x4b6e5772 /* KwNr */
-FILE *fd_in, *fd_out;
-struct pdb *pdb_in, *pdb_out;
-char *fname_in, *fname_out;
+static FILE *fd_in, *fd_out;
+static struct pdb *pdb_in, *pdb_out;
+static char *fname_in, *fname_out;
static void *mkshort_handle;
static gpsdata_type ppdb_type;
-unsigned char german_release = 0;
+static unsigned char german_release = 0;
typedef struct ppdb_appdata
{
static char *maxctarg = NULL;
static int maxct;
-waypoint * home_pos;
+static waypoint * home_pos;
typedef struct {
double distance;
static FILE *file_in;
static FILE *file_out;
static const char *out_fname;
-struct pdb *opdb;
+static struct pdb *opdb;
static int ct;
static ubyte* rec_ptr = NULL;
static route_head *route = NULL;
-FILE *fd;
-FILE *ofd;
+static FILE *fd;
+static FILE *ofd;
static char *routevia = NULL;
#define MYNAME "GPSUTIL"
static double maxlat, maxlon, minlat, minlon;
-int rec_cnt;
+static int rec_cnt;
static char *nolabels = NULL;
static char *genurl = NULL;
static char *suppresswhite = NULL;
static char *newmarker = NULL;
static char *unfoundmarker = NULL;
-int scalev;
-int short_length;
-double thresh_days;
+static int scalev;
+static int short_length;
+static double thresh_days;
/*
* The code bracketed by CLICKMAP is to generate clickable image maps
#include "defs.h"
#include "cet_util.h"
-queue waypt_head;
+queue waypt_head = {};
static unsigned int waypt_ct;
static void *mkshort_handle;